package org.imlinker.chat;

import org.imlinker.plugin.Plugin;

/**
 * Link plugin to buddy.
 *  
 */

public class PluginChatListener {
	/**
	 * The pluginItem.
	 */
	private Plugin savedPlugin;

	/**
	 * The buddy.
	 */
	private String savedBuddy;

	/**
	 * Constructor.
	 * 
	 * @param plugin
	 *            The pluginItem to listen.
	 * @param buddy
	 *            The buddy to be listened.
	 */
	public PluginChatListener(final Plugin plugin, final String buddy) {
		this.savedPlugin = plugin;
		this.savedBuddy = buddy;
	}

	/**
	 * Get the buddy to be listened..
	 * 
	 * @return The listened buddy.
	 */
	public final String getBuddy() {
		return savedBuddy;
	}

	/**
	 * Get the listening plugin.
	 * 
	 * @return The listening plugin.
	 */
	public final Plugin getPlugin() {
		return savedPlugin;
	}
}
